package com.jerry.question;


/**
 * Created with IntelliJ IDEA
 * User: Jerry
 * Date: 2020/8/6
 * Time: 17:42
 * Description: 数据实体
 */
public class PtBigdata implements Comparable<PtBigdata> {

    private Integer id;

    private Integer number;

    private String name;

    private Integer index;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    @Override
    public int compareTo(PtBigdata o) {
        return o.number - number;
    }
}
